package cn.ac.jaas.isc.vegetable.common.core.exception;

import lombok.NoArgsConstructor;

/**
 * @author 张高昌
 * @date 2022/4/21 14:10
 * @description: 功能描述
 */
@NoArgsConstructor
public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    public String businessErrorCode;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String errorCode, String message) {
        super(message);
        this.businessErrorCode = errorCode;
    }


    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
